
void main(List<String> args) {
  // Person p=Person("老高", 14);
  // p.eat();

  // Man p=Man("老高", 14);
  // p.eat();
  // p.workHardForMoney();

  Woman w=Woman("高跟鞋", "章姐", 30);
  w.eat();
  w.workForUI();

  w.playBaskeBall("李姐");
  w.songName="青花瓷";
  w.sing("李姐");


  
}

class Person{
  String? name;
  int? age;

  Person(this.name,this.age);//简写
  eat(){
    print("$name每天都在吃窝头");
  }

}

class Man extends Person{

  Man(super.name,super.age);

  workHardForMoney(){
    print("$name为了生活而努力");
  }

}

class Woman extends Person with SportUtils,SingUtils{
  String? shoes;
  Woman(this.shoes,super.name,super.age);

  workForUI(){
    print("$name $shoes 设计的很厉害");
  }

}

mixin SportUtils{
  playBaskeBall(String? name){
    print("$name 有人喜欢打蓝球");
  }
}

mixin SingUtils{
  String? songName;

  sing(String name){
    print("$name 有人在半夜唱$songName歌");
  }
}